#include <stdio.h>
int main()
{
    int qz;
    char xy;
    scanf("%c", &xy);
    qz = (int)xy;
    printf("%d", qz);
    return 0;
}